@extends('layouts.default') @section('main')
    <link rel="stylesheet" href="/css/uniform.css" />
    <link rel="stylesheet" href="/css/select2.css" />
    <div id="content">
        <div id="content-header">
            <div id="breadcrumb">
                <a href="{{url('home')}}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
                <a href="#" class="current">指派给我的项目评审列表</a> </div>
        </div>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span17">
                    <div class="widget-box">
                        <div class="widget-title"> <span class="icon">
            <input type="checkbox" id="title-checkbox" name="title-checkbox" />
            </span>
                            <h5>指派给我的项目评审列表</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <table class="table table-bordered table-striped with-check">
                                <thead>
                                <tr>
                                    <th><i class="icon-resize-vertical"></i></th>
                                    <th>项目名称</th>
                                    <th>创建时间</th>
                                    <th>发布时间</th>
                                    <th>更新时间</th>
                                    <th>所在地区</th>
                                    <th>发布者昵称</th>
                                    <th>指派审核人</th>
                                    <th>详情</th>
                                    <th>完整度</th>
                                    <th>状态</th>
                                    <th>评审</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($lists as $list)
                                    <tr>
                                        <td><input type="checkbox" /></td>
                                        <td title="{{$list->subject}}">{{cut_str($list->subject,8,'...')}}</td>
                                        <td>{{date('Y-m-d', strtotime($list->created_at->toDateTimeString()))}}</td>
                                        <td>{{date('Y-m-d', $list->pubdate)}}</td>
                                        <td>{{date('Y-m-d', strtotime($list->updated_at->toDateTimeString()))}}</td>
                                        <td>@if(isset($list->zone)){{$list->zone->name}}@endif</td>
                                        <td>@if(isset($list->user)){{$list->user->nickname}}@endif</td>
                                        <td>@if(isset($list->admin)){{$list->admin->nickname}}@endif</td>
                                        <td>点击查看</td>
                                        <td>{{$list->progress}}</td>
                                        <td>@if($list->status == 1)<i class="icon-ok"></i>@elseif($list->status == 0)<i class="icon-question"></i>>@elseif($list->status == -1)<i class="icon-remove"></i>@endif</td>
                                        <td class="center">
                                            @if(in_array('edit',$actions))<a data-original-title="评审" class="tip" href="{{url('allproject/audit?id='.$list->id)}}"><i class="icon-pencil"></i></a>@endif
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <?php echo $lists->render();?>
                </div>
            </div>
        </div>
    </div>
    <script src="/js/matrix.tables.js"></script>
@stop
